export const getAllDays = (start: string, end: string) => {
  let arr = [];
  let dates = [];

  let dateStart = new Date(start);
  let dateEnd = new Date(end);

  let sTime = dateStart.getTime() - 24 * 60 * 60 * 1000;
  let eTime = dateEnd.getTime() - 24 * 60 * 60 * 1000;

  for (let i = sTime; i <= eTime;) {
    i = i + 24 * 60 * 60 * 1000;
      arr.push(i)

  }

  for( let j in arr ){
    let time = new Date(arr[j]);
    let year = time.getFullYear();
    let mouth = (time.getMonth() + 1)>=10?(time.getMonth() + 1):('0'+(time.getMonth() + 1));
    let day = time.getDate()>=10?time.getDate():('0'+time.getDate());
    let YYMMDD = year + '-' + mouth + '-' + day;
    dates.push(YYMMDD)

}
  return dates
}

